home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / rexecd.z / rexecd
Encoding:
Text File  |  2002-10-03  |  13.2 KB  |  265 lines

  1.  
  2.  
  3.  
  4. RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))                                                          RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      rexecd - remote execution server
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////uuuussssrrrr////eeeettttcccc////rrrreeeexxxxeeeeccccdddd [ ----llll ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _R_e_x_e_c_d is the server for the _r_e_x_e_c(3N) routine.  The server provides
  16.      remote execution facilities with authentication based on user names and
  17.      passwords.  NNNNOOOOTTTTEEEE: password aging is not supported by this daemon.
  18.  
  19.      _R_e_x_e_c_d listens for service requests at the port indicated in the ``exec''
  20.      service specification; see _s_e_r_v_i_c_e_s(4).  When a service request is
  21.      received the following protocol is initiated:
  22.  
  23.      1)   The server reads characters from the socket up to a null (`\0')
  24.           byte.  The resultant string is interpreted as an ASCII number, base
  25.           10.
  26.  
  27.      2)   If the number received in step 1 is non-zero, it is interpreted as
  28.           the port number of a secondary stream to be used for the ssssttttddddeeeerrrrrrrr.  A
  29.           second connection is then created to the specified port on the
  30.           client's machine.
  31.  
  32.      3)   A null-terminated user name of at most 16 characters is retrieved on
  33.           the initial socket.
  34.  
  35.      4)   A null-terminated, unencrypted password of at most 16 characters is
  36.           retrieved on the initial socket.
  37.  
  38.      5)   A null-terminated command to be passed to a shell is retrieved on
  39.           the initial socket.  The length of the command is limited by the
  40.           upper bound on the size of the system's argument list.
  41.  
  42.      6)   _R_e_x_e_c_d then validates the user as is done at login time and, if the
  43.           authentication was successful, changes to the user's home directory,
  44.           and establishes the user and group protections of the user.  If any
  45.           of these steps fail the connection is aborted with a diagnostic
  46.           message returned.
  47.  
  48.      7)   A null byte is returned on the initial socket and the command line
  49.           is passed to the normal login shell of the user.  The shell inherits
  50.           the network connections established by _r_e_x_e_c_d.
  51.  
  52. SSSSHHHHAAAARRRREEEE IIIIIIII AAAACCCCTTTTIIIIOOOONNNNSSSS
  53.      If the Share II system is installed and enabled, then the following
  54.      privilege and resource checks are made immediately after validation
  55.      checks are complete (_rrrr_ssss_hhhh_dddd(1)) but before the shell is started:
  56.  
  57.      1.  If your _nnnn_oooo_llll_oooo_gggg_iiii_nnnn flag is set, or you already have another connection
  58.          and your _oooo_nnnn_eeee_llll_oooo_gggg_iiii_nnnn flag is set, then you are denied connection.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))                                                          RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      2.  If a disk usage exceeds the soft disk limit in any of your domains,
  75.          then a message is printed and you are given a _w_a_r_n_i_n_g.  If you
  76.          accumulate too many warnings, further connection attempts are denied
  77.          and you must see your subadministrator to rectify the situation.
  78.          Whenever you connect with no disk usages in excess of any soft
  79.          limits, all your accumulated warnings are cleared.
  80.  
  81.      3.  If you do not have permission to use an _rrrr_eeee_xxxx_eeee_cccc connection, as
  82.          determined by the terminal permission flag _tttt_eeee_rrrr_mmmm_iiii_nnnn_aaaa_llll_...._ffff_llll_aaaa_gggg_...._rrrr_eeee_xxxx_eeee_cccc, then
  83.          you are denied connection.
  84.  
  85.      4.  Some installations place limits on terminal connect-time, which apply
  86.          equally to connection by way of _rrrr_eeee_xxxx_eeee_cccc.  If you have already reached
  87.          your connect-time limit, then you are denied connection.  Otherwise,
  88.          if you have a limit, your remaining connect-time is printed.
  89.  
  90.      If all these checks are passed, _rrrr_eeee_xxxx_eeee_cccc_dddd proceeds normally.
  91.  
  92.      For each new instance of a remotely initiated process, rexecd first reads
  93.      the configuration file _////_eeee_tttt_cccc_////_dddd_eeee_ffff_aaaa_uuuu_llll_tttt_////_rrrr_eeee_xxxx_eeee_cccc_dddd.  Currently the only switch in
  94.      this file is SVR4_SIGNALS, which indicates if SVR4 signal defaults should
  95.      be used, and defaults to `YES'.  This means that processes spawned by
  96.      rexecd will run with the SIGXFSZ and SIGXCPU signals disabled (i.e.
  97.      ignored).  For CPU and filesize resource limiting to work correctly, this
  98.      file should be edited and SVR4_SIGNALS set to `NO', so that these signal
  99.      retain their default behaviour, which is to terminate the process.
  100.  
  101. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  102.      ----llll   This option causes all successful accesses to be logged to
  103.           _s_y_s_l_o_g_d(1M) as _a_u_t_h._i_n_f_o messages.
  104.  
  105. FFFFIIIILLLLEEEESSSS
  106.      _////_eeee_tttt_cccc_////_llll_iiii_mmmm_cccc_oooo_nnnn_ffff        The compiled Share II configuration file (machine
  107.                          readable).
  108.  
  109.      _////_eeee_tttt_cccc_////_dddd_eeee_ffff_aaaa_uuuu_llll_tttt_////_rrrr_eeee_xxxx_eeee_cccc_dddd Default behaviour configuration file
  110.  
  111. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  112.      login(1), rshd(1M), rexec(3N), passwd(4), share(5)
  113.  
  114. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  115.      Except for the last one listed below, all diagnostic messages are
  116.      returned on the initial socket, after which any network connections are
  117.      closed.  An error is indicated by a leading byte with a value of 1 (0 is
  118.      returned in step 7 above upon successful completion of all the steps
  119.      prior to the command execution).
  120.  
  121.      ````````uuuusssseeeerrrrnnnnaaaammmmeeee ttttoooooooo lllloooonnnngggg''''''''
  122.      The name is longer than 16 characters.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))                                                          RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))
  137.  
  138.  
  139.  
  140.      ````````ppppaaaasssssssswwwwoooorrrrdddd ttttoooooooo lllloooonnnngggg''''''''
  141.      The password is longer than 16 characters.
  142.  
  143.      ````````ccccoooommmmmmmmaaaannnndddd ttttoooooooo lllloooonnnngggg ''''''''
  144.      The command line passed exceeds the size of the argument list (as
  145.      configured into the system).
  146.  
  147.      ````````LLLLooooggggiiiinnnn iiiinnnnccccoooorrrrrrrreeeecccctttt....''''''''
  148.      No password file entry for the user name existed.  (Also logged to the
  149.      _s_y_s_l_o_g_d(1M) daemon as an _a_u_t_h._n_o_t_i_c_e message.)
  150.  
  151.      ````````PPPPaaaasssssssswwwwoooorrrrdddd iiiinnnnccccoooorrrrrrrreeeecccctttt....''''''''
  152.      The wrong was password supplied.  (Also logged to the _s_y_s_l_o_g_d(1M) daemon
  153.      as an _a_u_t_h._n_o_t_i_c_e message.)
  154.  
  155.      ````````NNNNoooo rrrreeeemmmmooootttteeee ddddiiiirrrreeeeccccttttoooorrrryyyy....''''''''
  156.      The _c_h_d_i_r command to the home directory failed.
  157.  
  158.      ````````TTTTrrrryyyy aaaaggggaaaaiiiinnnn....''''''''
  159.      A _f_o_r_k by the server failed.
  160.  
  161.      ````````<<<<sssshhhheeeellllllllnnnnaaaammmmeeee>>>>:::: ............''''''''
  162.      The user's login shell could not be started.  This message is returned on
  163.      the connection associated with the ssssttttddddeeeerrrrrrrr, and is not preceded by a flag
  164.      byte.
  165.  
  166.      The Share II specific diagnostic messages are listed as follows:
  167.  
  168.      ````````WWWWaaaarrrrnnnniiiinnnngggg <<<<XXXX>>>> ooooffff <<<<YYYY>>>>:::: ssssoooofffftttt ddddiiiisssskkkk lllliiiimmmmiiiitttt eeeexxxxcccceeeeeeeeddddeeeedddd....''''''''
  169.      One of your domains has a disk usage in excess of its soft limit.
  170.  
  171.      ````````CCCCoooonnnnnnnneeeeccccttttiiiioooonnnn ddddeeeennnniiiieeeedddd....  TTTToooooooo mmmmaaaannnnyyyy wwwwaaaarrrrnnnniiiinnnnggggssss....''''''''
  172.      You have reached your warning limit.  See your subadministrator.
  173.  
  174.      ````````CCCCoooonnnnnnnneeeeccccttttiiiioooonnnn ddddeeeennnniiiieeeedddd....  AAAAllllrrrreeeeaaaaddddyyyy llllooooggggggggeeeedddd iiiinnnn ---- oooonnnnllllyyyy oooonnnneeee llllooooggggiiiinnnn aaaalllllllloooowwwweeeedddd....''''''''
  175.      You are already connected to the system and your _oooo_nnnn_eeee_llll_oooo_gggg_iiii_nnnn flag is set.
  176.  
  177.      ````````CCCCoooonnnnnnnneeeeccccttttiiiioooonnnn ddddeeeennnniiiieeeedddd....  CCCCuuuurrrrrrrreeeennnnttttllllyyyy bbbbaaaarrrrrrrreeeedddd ffffrrrroooommmm llllooooggggggggiiiinnnngggg iiiinnnn....''''''''
  178.      Your _nnnn_oooo_llll_oooo_gggg_iiii_nnnn flag is set.
  179.  
  180.      ````````CCCCoooonnnnnnnneeeeccccttttiiiioooonnnn ddddeeeennnniiiieeeedddd....  NNNNoooo ppppeeeerrrrmmmmiiiissssssssiiiioooonnnn ttttoooo uuuusssseeee tttthhhhiiiissss tttteeeerrrrmmmmiiiinnnnaaaallll....''''''''
  181.      You are not allowed to log in at this terminal because of a clear
  182.      _tttt_eeee_rrrr_mmmm_iiii_nnnn_aaaa_llll_...._ffff_llll_aaaa_gggg_...._rrrr_eeee_xxxx_eeee_cccc flag.
  183.  
  184.      ````````YYYYoooouuuu hhhhaaaavvvveeee aaaa rrrreeeemmmmaaaaiiiinnnniiiinnnngggg tttteeeerrrrmmmmiiiinnnnaaaallll ccccoooonnnnnnnneeeecccctttt----ttttiiiimmmmeeee ooooffff <<<<YYYY>>>>....''''''''
  185.      You may use this connection until you have used up your remaining
  186.      connect-time, at which point you are forced to disconnect.
  187.  
  188.      ````````CCCCoooonnnnnnnneeeeccccttttiiiioooonnnn ddddeeeennnniiiieeeedddd....  TTTTeeeerrrrmmmmiiiinnnnaaaallll ccccoooonnnnnnnneeeecccctttt----ttttiiiimmmmeeee lllliiiimmmmiiiitttt eeeexxxxcccceeeeeeeeddddeeeedddd....''''''''
  189.      You have already reached your terminal connect-time limit.
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))                                                          RRRREEEEXXXXEEEECCCCDDDD((((1111MMMM))))
  203.  
  204.  
  205.  
  206.      ````````SSSShhhhaaaarrrreeee nnnnooootttt ccccoooonnnnffffiiiigggguuuurrrreeeedddd ---- nnnnoooo lllliiiimmmmiiiitttt cccchhhheeeecccckkkkssss....''''''''
  207.      The configuration file is unreadable for some reason, so terminal
  208.      privileges, connect-time limits and disk space limits could not be
  209.      checked.
  210.  
  211. BBBBUUUUGGGGSSSS
  212.      Indicating ``Login incorrect'' as opposed to ``Password incorrect'' is a
  213.      security breach which allows people to probe a system for users with null
  214.      passwords.
  215.  
  216.      A facility to allow all data and password exchanges to be encrypted
  217.      should be present.
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.